<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加商品</title>
    <link rel="stylesheet" th:href="@{/css/common.css}">
    <link rel="stylesheet" th:href="@{/css/addGoods.css}">
</head>
<body>


<!-- 快捷导航 -->
<div class="shortcut">
    <div class="wrapper">
        <ul>

            <li><a href="#">联系客服</a></li>
            <li><a th:href="@{|/page/${1}/${session.user.getUserId()}|}">返回首页</a></li>
        </ul>
    </div>
</div>

<div class="container">

<!--    <div class="img-title">-->
<!--        <img th:src="@{/images/现时抢购.jpg}">-->
<!--    </div>-->


    <div class="goodInfo">

        <p>请输入商品信息</p>

        <div class="info">

            <form th:action="@{/business/addProduct}" method="post" enctype="multipart/form-data">
                <p>商品名称</p>
                <input name="productName" type="text">
                <p>商品库存</p>
                <input name="productCount" type="text">
                <p>商品类型</p>
                <select name="productTypeName" style="text-align: center" >
                    <option th:each="productType:${productTypeList}" th:object="${productType}" th:value="*{productTypeName}" th:text="*{productTypeName}">家电</option>
                </select>
                <p>商品图片</p>
                <div class="img_file">
                    <input type="file" name="myFile" placeholder="请选择图片"/><br>
                </div>
                <p>商品价格</p>
                <input name="productPrice" type="text">
                <p></p>
                <input id="add" type="submit" value="添加">
            </form>
        </div>
    </div>
</div>
</body>
</html>